package com.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

//媒体报道
@Entity
@Table(name="xinwen")
public class XinWen {
	private Integer id;
	private String title;//标题
	private String imgurl;
	
	private String time;//创建时间
	private String content;//内容
	private Integer publish;
	public XinWen(Integer id, String content) {
		super();
		this.id = id;
		this.content = content;
	}
	public XinWen() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(length=10000)
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	
	@Column()
	public String getImgurl() {
		return imgurl;
	}
	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}
	@Column()
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	@Column()
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public Integer getPublish() {
		return publish;
	}
	public void setPublish(Integer publish) {
		this.publish = publish;
	}
	public XinWen(Integer id, String title, String time, String content,
			Integer publish) {
		super();
		this.id = id;
		this.title = title;
		this.time = time;
		this.content = content;
		this.publish = publish;
	}

	
	

	
}
